G_CALLBACK (g_action_group_action_removed), window);
}
-static void
-gtk_application_window_snapshot (GtkWidget *widget,
- GtkSnapshot *snapshot)
-{
- GtkApplicationWindow *window = GTK_APPLICATION_WINDOW (widget);
-
- GTK_WIDGET_CLASS (gtk_application_window_parent_class)->snapshot (widget, snapshot);
-
- if (window->priv->menubar)
- gtk_widget_snapshot_child (widget, window->priv->menubar, snapshot);
-}
-
static void
gtk_application_window_class_init (GtkApplicationWindowClass *class)
{
widget_class->unrealize = gtk_application_window_real_unrealize;
widget_class->map = gtk_application_window_real_map;
widget_class->unmap = gtk_application_window_real_unmap;
- widget_class->snapshot = gtk_application_window_snapshot;
object_class->get_property = gtk_application_window_get_property;
object_class->set_property = gtk_application_window_set_property;
gint title_height;
GList *l;
int width, height;
+ GtkWidget *child;
context = gtk_widget_get_style_context (widget);
height -
(window_border.top + window_border.bottom + title_height));
- if (priv->title_box != NULL)
- gtk_widget_snapshot_child (widget, priv->title_box, snapshot);
-
- if (gtk_bin_get_child (GTK_BIN (widget)))
- gtk_widget_snapshot_child (widget, gtk_bin_get_child (GTK_BIN (widget)), snapshot);
+ for (child = _gtk_widget_get_first_child (widget);
+ child != NULL;
+ child = _gtk_widget_get_next_sibling (child))
+ {
+ /* Handle popovers separately until their stacking order is fixed */
+ if (!GTK_IS_POPOVER (child))
+ gtk_widget_snapshot_child (widget, child, snapshot);
+ }
for (l = priv->popovers.head; l; l = l->next)
{